<?php

    if(empty($logged_in)):

?>



	<!-- TOP BAR -->

	<div id="top-bar">

		

		<div class="page-full-width">

		

		<!--	<a href="#" class="round button dark ic-left-arrow image-left ">Return to website</a>-->



		</div> <!-- end full-width -->	

	

	</div> <!-- end top-bar -->

	

	

	

	<!-- HEADER -->

	<div id="header">

		

		<div class="page-full-width cf">

	

			<div id="login-intro" class="fl">

			

				<h1>Login to HRM</h1>

				<h5>Enter your credentials below</h5>

			

			</div> <!-- login-intro -->

			

			<!-- Change this image to your own company's logo -->

			<!-- The logo will automatically be resized to 39px height. -->

			<a href="#" id="company-branding" class="fr"><img src="<?=$this->config->item('img_url')?>company-logo.png" alt="" /></a>

			

		</div> <!-- end full-width -->	



	</div> <!-- end header -->

	

	

<?php

    else:

    $uri = $_SERVER['REQUEST_URI'];

?>

<div id="top-bar">

		

		<div class="page-full-width cf">



			<ul id="nav" class="fl">

	

				<!--<li class="v-sep"><a href="#" class="round button dark ic-left-arrow image-left">Go to website</a></li>-->

				<li class="v-sep"><a href="#" class="round button dark menu-user image-left">Logged in as <strong>admin</strong></a>

					<ul>
                        <?php 
                            $session_data = $this->session->userdata('logged_in');
                            $id = $session_data['id'];  
                        ?>
						<li><?php echo anchor('user/changePassword/'.$id, 'Change Passwords'); ?></li>

						<li><?=anchor('main/logout', 'Logout', array('title'=>'logout'));?></li>

					</ul> 

				</li>

			

				<!--<li><a href="#" class="round button dark menu-email-special image-left">3 new messages</a></li>-->

				

				

			</ul> <!-- end nav -->



					
<!--
			<form action="#" method="POST" id="search-form" class="fr">

				<fieldset>

					<input type="text" id="search-keyword" class="round button dark ic-search image-right" placeholder="Search..." />

					<input type="hidden" value="SUBMIT" />

				</fieldset>

			</form>

-->

		</div> <!-- end full-width -->	

	

	</div> <!-- end top-bar -->

	

	

	

	<!-- HEADER -->

	<div id="header-with-tabs">

		

		<div class="page-full-width cf">

	

			<ul id="tabs" class="fl">

				<li><a href="<?=$this->config->item('main_url').'/dashboard'?>" <?php if(preg_match("/dashboard/",$uri)){echo 'class="active-tab"';}?>>Dashboard</a></li>
                
				<li><a href="<?=$this->config->item('main_url').'/paygrade/update/2'?>" <?php if(preg_match("/paygrade/",$uri)){echo 'class="active-tab"';}?>>Paygrade</a></li>
                
				<li><a href="<?=$this->config->item('main_url').'/department/listDepartment'?>" <?php if(preg_match("/department/",$uri)){echo 'class="active-tab"';}?>>Department</a></li>
                <?php /*
                <li><a href="<?=$this->config->item('main_url').'/leave'?>" <?php if(preg_match("/leave/",$uri)){echo 'class="active-tab"';}?>>Leave</a></li>
                */ ?>
                <li><a href="<?=$this->config->item('main_url').'/timesheet'?>" <?php if(preg_match("/timesheet/",$uri)){echo 'class="active-tab"';}?>>Timesheet</a></li>

                <li><a href="<?=$this->config->item('main_url').'/staff/listStaff'?>" <?php if(preg_match("/staff/",$uri)){echo 'class="active-tab"';}?>>Staff</a></li>

                <li><a href="<?=$this->config->item('main_url').'/report'?>" <?php if(preg_match("/report/",$uri)){echo 'class="active-tab"';}?>>Report</a></li>
                <?php /*
                <li><a href="<?=$this->config->item('main_url').'/user/listUser'?>" <?php if(preg_match("/user/",$uri)){echo 'class="active-tab"';}?>>User</a></li>
                */ ?>
			</ul> <!-- end tabs -->

			

			<!-- Change this image to your own company's logo -->

			<!-- The logo will automatically be resized to 30px height. -->

			<a href="<?=$this->config->item('main_url')?>" id="company-branding-small" class="fr"><img src="<?=$this->config->item('img_url')?>company-logo.png" alt="Blue Hosting" /></a>

			

		</div> <!-- end full-width -->	



	</div> <!-- end header -->

<?php

    endif;

?>